export default {
  // 开启命名空间
  namespaced:true,
  actions: {
    add(context, value) {
      context.commit("ADD", value);
    },
  },
  mutations: {
    ADD(state, value) {
      state.sum += value;
    },
  },
  state: {
    sum: 0,
  },
  getters: {
    bigSum(state) {
      return state.sum * 10;
    },
  },
};
